package com.wispx.shortlink.admin.common.enums;

import com.wispx.shortlink.admin.common.convention.errorcode.IErrorCode;

public enum UserErrorCodeEnum implements IErrorCode {

    USER_NULL("B000200","所查询的用户不存在"),
    USER_NAME_EXIST("B000201","用户名称已存在"),
    USER_EXIST("B000202","用户记录已存在"),
    USER_SAVE_ERROR("B000203","用户保存失败");

    private final String code;
    private final String message;

    UserErrorCodeEnum(String code,String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String code() {
        return this.code;
    }

    @Override
    public String message() {
        return this.message;
    }
}
